<?php
/**
 * Created by PhpStorm.
 * User: zhangligang
 * Date: 17/4/22
 * Time: 下午2:12
 */

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * 买家地址
 * Class BuyerAddress
 * @package App\Http\Models
 */
class BuyerAddress extends Model
{
    /**
     * table name
     * @var string
     */
    protected $table = 'app_buyer_address';

    protected $fillable = ['*'];

    /**
     * 关联买家
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function buyer()
    {
        return $this->belongsTo('App\Http\Models\User', 'user_id');
    }

}